package net.xdclass.xdclasssky.model;

/**
 * 小滴课堂,愿景：让技术不再难学
 *
 * @Description
 * @Author 二当家小D，微信：xdclass6
 * @Remark 有问题直接联系我，源码-笔记-技术交流群
 * @Version 1.0
 **/

public class JsonData {

    private int code;

    private Object data;

    private String msg;

    public  JsonData(){}

    public JsonData(int code,Object data,String msg){
        this.code = code;
        this.data = data;
        this.code = code;
    }

    public static JsonData buildSuccess(Object data){

        return new JsonData(0,data,"");
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
